<?php
/**
 * author : v_gaobingbing@duxiaoman.com
 * createTime : 2021/8/19 4:33 下午
 * description :
 */

namespace SweetSunnyFlower\LaravelFilesystemObs;

class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
    protected $defer = true;

    public function register()
    {
        $this->app->singleton(Obs::class, function(){
            return new Obs(config('filesystems.disks.obs'));
        });

        $this->app->alias(Obs::class, 'obs');
    }

    public function provides()
    {
        return [Weather::class, 'weather'];
    }
}